import { mapGetters } from 'vuex'
export default {
  computed: {
    ...mapGetters(['userInfo'])
  },
  methods: {
    checkPermission(str) {
      const points = this.userInfo.roles.points
      if (points && points.length) {
        return !points.some(item => {
          // console.log(item)
          return item.toLocaleLowerCase() === str
        })
      }
      return true
    }
  }
}
